package com.quick.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName HelloController
 * @Description TODO
 * @Author wangxin43
 * @Date 2018/7/21 下午6:42
 * @Version 1.0
 **/
@Controller
@RequestMapping(value = "/hello")
public class HelloController {
	@RequestMapping("/helloweb")
	public String hello(ModelMap modelMap){
		//向模板中添加属性
		modelMap.put("hello","helloweb");
		// return模板文件的名称，对应src/main/resources/templates/index.html
		return "index";
	}
}
